import { legacy_createStore as createStore, applyMiddleware } from "redux";
import { combineReducers } from "redux-immutable";
import layout from "./module/layout";
import login from './module/login'
import liangyubo from './module/liangyubo'
//为了实现异步
import thunk from 'redux-thunk'
import logger from 'redux-logger'

const reducers = combineReducers({
  liangyubo,login,layout
});

const store = createStore(reducers, applyMiddleware(thunk,logger));
export default store;

// import {legacy_createStore,combineReducers,applyMiddleware} from 'redux'

// import liangyubo from './module/liangyubo'
// let store = combineReducers({liangyubo})
// let newStore=legacy_createStore(store,applyMiddleware(thunk,logger))
// export default newStore


